<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');

class ArticleflowViewHistory extends JView {

    function display($tpl = null) {
        global $mainframe, $option;

        $user = & JFactory::getUser();
        $db = & JFactory::getDBO();
        $uri = & JFactory::getURI();

        $cid = JRequest::getVar('cid');
        $post = (int) $cid;

        $model = $this->getModel();
        $items =  $model->getData($post);

        $total = $model->getTotal($post);
        $pagination = $model->getPagination($post);
       
        $javascript = 'onchange="document.adminForm.submit();"';
        $this->assignRef('items', $items);
        $this->assignRef('pagination', $pagination);
        parent::display($tpl);
    }

}

?>
